from flask_wtf import Form
from wtforms import StringField, SubmitField, TextAreaField
from wtforms.validators import DataRequired, Length


class PostTopicForm(Form):
    title = StringField('Title', validators=[DataRequired(), Length(1, 64)])
    body = TextAreaField('Body', validators=[DataRequired()])
    submit = SubmitField('Submit')

class CommentForm(Form):
    comment = TextAreaField('Comment', validators=[DataRequired()])
    submit = SubmitField('Submit')
